Git Recipes: A Problem-Solution Approach by Wlodzimierz Gajda
Author:Wlodzimierz Gajda
Language: eng
Format: mobi, epub, pdf
Tags: Software Development, Programming, Testing & Engineering, Software Design, Computer Science, Education & Reference, Computers & Technology
ISBN: 9781430261032
Publisher: Apress
Published: 2013-11-20T05:00:00+00:00
Create a new repository that will contain two revisions: a and b. The first revision should include one file a.txt and the second revision should include three files: b.txt, c.txt, and d.txt:
$ cd git-recipes
$ git init 08-04
$ cd 08-04
$ echo a > a.txt
$ git add -A
$ git commit -m a
$ echo b > b.txt
$ echo c > c.txt
$ echo d > d.txt
$ git add -A
$ git commit -m b
Verify that the repository contains two revisions with the $ git log --oneline command and that the last revision really contains three files. The output of the $ git show --name-only command will print three filenames: b.txt, c.txt, and d.txt.
Now, reset your history to revision a, preserving the modifications introduced by revision b in the working directory as the new uncommitted change. You can do this with the $ git reset HEAD∼ command. After this command the state of your repository returned by $ git status -sb will be the following:
?? b.txt
?? c.txt
?? d.txt
As you can see the files are now untracked. You can create three different revisions with:
$ git add b.txt
$ git commit -m b
Download
Git Recipes: A Problem-Solution Approach by Wlodzimierz Gajda.epub
Git Recipes: A Problem-Solution Approach by Wlodzimierz Gajda.pdf
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8310)
Test-Driven Development with Java by Alan Mellor(6817)
Data Augmentation with Python by Duc Haba(6729)
Principles of Data Fabric by Sonia Mezzetta(6474)
Learn Blender Simulations the Right Way by Stephen Pearson(6383)
Microservices with Spring Boot 3 and Spring Cloud by Magnus Larsson(6247)
Hadoop in Practice by Alex Holmes(5966)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(5816)
RPA Solution Architect's Handbook by Sachin Sahgal(5645)
Big Data Analysis with Python by Ivan Marin(5404)
The Infinite Retina by Robert Scoble Irena Cronin(5337)
Life 3.0: Being Human in the Age of Artificial Intelligence by Tegmark Max(5160)
Pretrain Vision and Large Language Models in Python by Emily Webber(4371)
Infrastructure as Code for Beginners by Russ McKendrick(4139)
Functional Programming in JavaScript by Mantyla Dan(4044)
The Age of Surveillance Capitalism by Shoshana Zuboff(3964)
WordPress Plugin Development Cookbook by Yannick Lefebvre(3852)
Embracing Microservices Design by Ovais Mehboob Ahmed Khan Nabil Siddiqui and Timothy Oleson(3656)
Applied Machine Learning for Healthcare and Life Sciences Using AWS by Ujjwal Ratan(3631)
